package cn.yuysaln.domain.strategy.service.rule.tree;

import cn.yuysaln.domain.strategy.service.rule.tree.factory.DefaultTreeFactory;

import java.util.Date;

/**
 * 规则树进行中、后规则过滤
 */
public interface ILogicTree {
    /**
     * 查看当前用户在某个策略下拿到的奖品是否符合规则
     * @param userId 当前用户ID
     * @param strategyId 当前策略ID
     * @param awardId 暂时拿到的奖品ID
     * @param ruleValue 具体规则值
     */
    DefaultTreeFactory.TreeActionEntity logic(String userId, Long strategyId, Integer awardId, String ruleValue, Date endDateTime);
}
